package com.oa.android.activity;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.support.v7.app.AppCompatActivity;
import android.view.View;
import android.widget.ImageView;
import android.widget.TextView;

import com.oa.android.R;
import com.oa.android.utils.UConstants;
import com.oa.android.utils.Util;

import butterknife.ButterKnife;
import butterknife.InjectView;

/**
 * Created by zouqh on 2017/11/26.
 */

public class AboutActivity extends Activity implements View.OnClickListener {


    @InjectView(R.id.close)
    ImageView close;
    @InjectView(R.id.title_text)
    TextView titleText;
    @InjectView(R.id.ritgh_icon)
    ImageView ritghIcon;
    @InjectView(R.id.ritgh_text)
    TextView ritghText;
    @InjectView(R.id.version)
    TextView version;
    @InjectView(R.id.sysName)
    TextView sysName;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.about_activity);
        ButterKnife.inject(this);
        titleText.setText("关于我们");
        close.setOnClickListener(this);
        version.setText("V"+ Util.getVersionName(this));
        sysName.setText(""+UConstants.ComName+"智慧OA系统");

    }

    @Override
    public void onClick(View v) {
        switch (v.getId()) {
            case R.id.close:
                finish();
                break;


        }
    }
}
